package com.yc.spring.biz;

import com.yc.spring.mapper.UserMapper;
import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

@Data
@Service
public class UserBiz {
    @Autowired
    //限定词注解-》指定注入bean的id
    @Qualifier("myUserMapper")//当有两个bean时，可以用这个注解指定用哪个
    UserMapper userMapper;
}
